package com.example.Repository;

import com.example.pojo.Result;
import com.example.pojo.dto.LoginDto;
import com.example.pojo.dto.RegisterDto;
import com.example.pojo.vo.UserVo;

/**
 * @author crt
 */
public interface UserRepository {

    Result<String> register(RegisterDto registerDto);

    Result<String> login(LoginDto loginDto) throws Exception;

    Result<UserVo> getUserInfo(String username);
}
